package _.mail.mock;

import org.budo.mail.Mail;
import org.budo.support.slf4j.Slf4j;
import org.slf4j.Logger;

import _.mail.MailSender;

/**
 * @author li
 * @version 1 (2014年7月1日 下午6:08:57)
 * @since Java7
 */
public class MockMailSender implements MailSender {
    private static final Logger log = Slf4j.getLogger();

    public String send(Mail email) {
        log.info("mock sender {} sending email {}", this, email);
        log.info("from {} to {} title {}", email.getFrom(), email.getTo(), email.getSubject());
        log.info(email.getContent());
        return null;
    }
}